package com.jzo2o.health.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jzo2o.common.expcetions.ForbiddenOperationException;
import com.jzo2o.health.mapper.MemberMapper;
import com.jzo2o.health.mapper.ReservationSettingMapper;
import com.jzo2o.health.model.domain.Member;
import com.jzo2o.health.model.domain.ReservationSetting;
import com.jzo2o.health.model.dto.response.ReservationSettingResDTO;
import com.jzo2o.health.service.IMemberService;
import com.jzo2o.health.service.IReservationSettingService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description ReservationSettingServiceImpl
 * @Author liMing
 * @Date 2024-12-14
 */

@Service
public class ReservationSettingServiceImpl extends ServiceImpl<ReservationSettingMapper, ReservationSetting> implements IReservationSettingService {

    @Override
    public List<ReservationSettingResDTO> getReservationSettingByMonth(String date) {
        if (date == null){
            throw new ForbiddenOperationException("请选择月份");
        }
        LambdaQueryWrapper<ReservationSetting> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ReservationSetting::getOrderDate,date);


        return null;
    }
}
